const merge = require('webpack-merge')
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const base = require('./webpack.base.config')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const { CleanWebpackPlugin } = require("clean-webpack-plugin") // 清除之前打包文件

module.exports = merge(base, {
    mode: 'production',
    plugins: [
        new CleanWebpackPlugin(),
    ]

})